<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" pageEncoding="UTF-8" buffer="128kb"%>
<%@ include file="/pages/safeai/jsp/common/taglibs.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>我的建议</title>
<link href="${ctx}/css/style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
	<!--
		.user_td1{
		line-height:30px;border-bottom:1px dashed #ddd;border-top:1px solid #efefef
		}
	-->
	</style>
<script language="JavaScript" src="${ctx}/js/jquery.js"></script>
<script language="JavaScript" src="${ctx}/js/filter.js"></script>
<script language="JavaScript" src="${ctx}/js/json2.js"></script>
<script type="text/javascript">
function gotoPage(pageOffset, pageSize) {
	var form = document.getElementsByTagName("form")[1];
	form.elements["pager.offset"].value = pageOffset;
	form.elements["pageSize"].value = pageSize;
	form.submit();
}
function check() {
	 var content = document.getElementById("content").value;
	 if(content==null || content==""){
	 	document.getElementById("content").focus();
	 	alert("请输入您的建议内容!");
	 	return ;
	 }else{
	 	if(content.length>255){
	 		alert("建议的内容最长不能超过255个字符!");
	 		return false;
	 	}
	 }
	 document.getElementsByTagName('form')[2].submit();
}
</script>
</head>
<body>
<div class="bg">
		  <div class="bg_inside">
		<div class="head">
			<c:import url="/pages/safeai/jsp/shop/header.jsp"></c:import>
		</div>
<c:import url="/front/userinfo.do?method=myRayi"></c:import>

<html:form action="/front/usermsg" method="post">
<input type="hidden" name="method" value="advice">
<div class="user_order_content">
<div  class="user_order_content_top"><img src="../images/user_order_content_top.jpg" /></div>
<div class="user_order_content_center"><ul><li style=" background-image:url(../images/title_letter_icon.jpg); background-position:left center; background-repeat:no-repeat;padding:5px 0px 0px 15px;margin-bottom:5px;line-height:15px;color:#5a3e2e">我的建议</li>

<logic:empty name="UsermsgRange" property="records">
<li>您目前还没有建议记录!</li>
</logic:empty>
<logic:notEmpty name="UsermsgRange" property="records">

<li style="color:#A6957C; >
<table width="670px" border="0" cellpadding="0" cellspacing="0">
		<tr >
		<table width="100%"  border="0" cellpadding="0" cellspacing="0"  style="color:#A6957C; background-color:#efefef">
		<tr>
<td style="width:25%;"  align="center">建议时间</td>
<td style="width:25%;"  align="center">建议类型</td>
<td style="width:50%;"  align="center">建议内容</td>

</tr></table></tr>


	<logic:iterate id="usermsg" name="UsermsgRange" property="records">
<tr>	
<table width="100%"  border="0" cellpadding="0" cellspacing="0" ><tr>


<td style="width:25%;" align="center" class="user_td1" ><bean:write name="usermsg" property="date" format="yyyy-MM-dd"/></td>
<td style="width:25%;" align="center" class="user_td1" >${usermsg.value1}</td>
<td style="width:50%;" align="center" class="user_td1" >${usermsg.content}</td>

</tr></table>
</tr>
<tr><table width="100%"  border="0" cellpadding="0" cellspacing="0">
  <tr><td width="25%"  align="center">回复内容:</td><td style="width:75%;" align="left">${usermsg.reply}</td></tr></table></tr>
	</logic:iterate>
</table>
</li>
<li style="float:right;text-align:right;padding-right:30px;margin-top:20px;width:400px"> <%@ include file="/user/pageFront.jsp"%></li>
</logic:notEmpty>
</html:form>

<html:form action="/front/usermsg" method="post">
<input type="hidden" name="method" value="addAdvice">
<li style="text-align:center;margin-top:20px">建议类型   
<label>
	<select name="usermsg.value1">
		<option value="价格">价格</option>
		<option value="品种">品种</option>
		<option value="品牌">品牌</option>
		<option value="服务">服务</option>
		<option value="物流">物流</option>
		<option value="其它">其它</option> 
	</select>  
</label>
</li>
<li style="text-align:center;overflow:hidden"><label>
  <textarea id="content" name="usermsg.content"></textarea>
  </label></li>
  <li style="text-align:center;"><a href="#" onclick="check();"  class="reg_button ">发表建议</a></li>
</ul> 				   
 </div>
<div  class="user_order_content_bottom"><img src="../images/user_order_content_bottom.jpg" /></div>
</div> 
</div>
</html:form>
<%@ include file="/user/commonProblem.jsp"%>
<div class="bottom">
	<%@ include file="/pages/safeai/jsp/shop/bottom.jsp"%>	
	<div class="clearAll"></div>
</div>
</body>
</html>
  